<template>
	<view>
		<view class="btn" @click="copy">
			复制
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			copy(){
				let d = "复制的内容呀"
				let flag = this.$copy(d)
				if(flag)this.$toast("复制成功")
			}
		}
	}
</script>

<style>
	.lazyLoad {
		width: 100rpx;
		height: 100rpx;
		margin: auto;
	}

	.btn {
		background: #976BF8;
		border-radius: 20rpx;
		height: 70rpx;
		line-height: 70rpx;
		width: 50%;
		display: block;
		text-align: center;
		color: #FFFFFF;
		margin: auto;
	}
</style>
